package com.shen.thread.state;

//模拟网络延迟：放大问题的发生性
public class TestSleep {

    public static void main(String[] args) throws Exception {
        int num = 10;
        while (true) {
            Thread.sleep(500);
            System.out.println(num--);
            if (num < 0) {
                break;
            }
        }
    }

}
